{include file='worklog/base/header'}

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row animated fadeInRight">
        <div class="col-sm-12">
            <button id="add" class="btn btn-primary" type="button"><i class="fa fa-plus"></i> 新增</button>
            <button class="btn btn-primary" id="export" type="submit"><i class="fa fa-sign-out"> 导出日志</i></button>
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>维修日志</h5>

                </div>

                <div class="ibox-content timeline">
                    {volist id='repair' name='repair_data' }
                    <div class="timeline-item">
                        <div class="row">
                            <div class="col-xs-3 date">
                                <i class="fa fa-wrench"></i>
<!--                                6:00-->
<!--                                <br>-->
                                <small class="text-navy">{$repair.record_time}</small>
                            </div>
                            <div class="col-xs-7 content no-top-border">
                                <p class="m-b-xs"><strong>维修设备编号：{$repair.machine_id}</strong>
                                </p>
                                <p><strong>故障描述：</strong></p><p style="text-indent:2em;">{$repair.fault_description}</p>
                                <p><strong>维修方式：</strong></p><p style="text-indent:2em;">{$repair.processing_method}</p>
                                <p><strong>维修结果：</strong></p><p style="text-indent:2em;">{$repair.processing_result}</p>
                            </div>
                        </div>
                    </div>
                    {/volist}
                </div>
            </div>
        </div>
    </div>
</div>
{include file='worklog/base/footer'}
<script>
    var $add=$('#add');
    $add.on('click',function (){
        layer.open({
            type: 2,
            title: '记录日志',
            shadeClose: false,
            shade: 0.8,
            area: ['60%', '90%'],
            content: 'add_repair_diary.html',
            end:function (){
                location.reload();
            }
        });
    })
    $('#export').on('click',function (){
        window.location.replace('export_repair_diary.html');
    })
</script>
<script src="__PUBLIC__/home/js/layui/layui.all.js"></script>
